def list_elements_multiply2(a, n):
    """将列表中的每个元素乘以n"""
    result = []
    for element in a:
        result.append(element * n)
    return result
a = [1,2,3,4,5,6]
x=list_elements_multiply2(a,5)
print(x)